using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Serialization;
using UnityEngine.UI;

public class ImageRotate : MonoBehaviour
{
    public float speed = 90;
    public bool isRotate = false;
    public RectTransform image;
    void Update()
    {
        if (isRotate)
         image.Rotate(Vector3.forward * (Time.deltaTime * speed));
    }
}
